package com.HomeWorkhsp.Chapter08.poly_;

/**
 * Enjoy programming!!!
 * Time: 2021/12/4 -  11:27
 */
public class PolyExercise01 {
    public static void main(String[] args) {
        Object o = "hello";
        String o1 = (String)o;
        System.out.println(o);
        System.out.println(o1);//转了就回不去了
        System.out.println(o.getClass());

        boolean flag = true;
//        int i = (int)flag;

        double d = 9.9;
        int i = (int)d;
        System.out.println(d);
        System.out.println(i);
    }
}
